package com.currency.mall.adapter;

import android.content.Context;
import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.currency.mall.R;
import com.currency.mall.entity.WalletBean;

import java.util.List;

/**
 * Created by Administrator on 2018/12/5.
 */

public class WalletAdapter extends BaseQuickAdapter<WalletBean.WalletInfo, BaseViewHolder> {

    public WalletAdapter(@Nullable List<WalletBean.WalletInfo> data, Context context) {
        super(R.layout.item_wallet_list, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, WalletBean.WalletInfo walletInfo) {
        helper.setText(R.id.tv_bKind,walletInfo.getkName());
        helper.setText(R.id.tv_available,walletInfo.getiAvailableBalance());
        helper.setText(R.id.tv_frozen,walletInfo.getiFrozenBalance());
        helper.setText(R.id.tv_toRmb,walletInfo.getToRmb());

    }

}
